package net.cloud.sfs.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@NoArgsConstructor
@Accessors(chain = true) //链式写法
public class Dept implements Serializable { //Dept实体类 orm 类表关系映射

    private Long deptno;//主键

    private String dname;

    private String dbSource;

    public Dept(String dname) {
        this.dname = dname;
    }

    /**
     * 链式写法
     *  Dept dept = new Dept();
     *
     * dept.setDeptno(11).setDname("ssss").setDbSource("db01");
     */

}
